package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.EquipmentRealDataMapper;
import com.ruoyi.business.domain.EquipmentRealData;
import com.ruoyi.business.service.IEquipmentRealDataService;

/**
 * 设备实时采集数据Service业务层处理
 * 
 * @author DL
 * @date 2025-06-23
 */
@Service
public class EquipmentRealDataServiceImpl implements IEquipmentRealDataService 
{
    @Autowired
    private EquipmentRealDataMapper equipmentRealDataMapper;

    /**
     * 查询设备实时采集数据
     * 
     * @param equipmentId 设备实时采集数据主键
     * @return 设备实时采集数据
     */
    @Override
    public EquipmentRealData selectEquipmentRealDataByEquipmentId(String equipmentId)
    {
        return equipmentRealDataMapper.selectEquipmentRealDataByEquipmentId(equipmentId);
    }

    /**
     * 查询设备实时采集数据列表
     * 
     * @param equipmentRealData 设备实时采集数据
     * @return 设备实时采集数据
     */
    @Override
    public List<EquipmentRealData> selectEquipmentRealDataList(EquipmentRealData equipmentRealData)
    {
        return equipmentRealDataMapper.selectEquipmentRealDataList(equipmentRealData);
    }

    /**
     * 新增设备实时采集数据
     * 
     * @param equipmentRealData 设备实时采集数据
     * @return 结果
     */
    @Override
    public int insertEquipmentRealData(EquipmentRealData equipmentRealData)
    {
        return equipmentRealDataMapper.insertEquipmentRealData(equipmentRealData);
    }

    /**
     * 修改设备实时采集数据
     * 
     * @param equipmentRealData 设备实时采集数据
     * @return 结果
     */
    @Override
    public int updateEquipmentRealData(EquipmentRealData equipmentRealData)
    {
        return equipmentRealDataMapper.updateEquipmentRealData(equipmentRealData);
    }

    /**
     * 批量删除设备实时采集数据
     * 
     * @param equipmentIds 需要删除的设备实时采集数据主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentRealDataByEquipmentIds(String[] equipmentIds)
    {
        return equipmentRealDataMapper.deleteEquipmentRealDataByEquipmentIds(equipmentIds);
    }

    /**
     * 删除设备实时采集数据信息
     * 
     * @param equipmentId 设备实时采集数据主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentRealDataByEquipmentId(String equipmentId)
    {
        return equipmentRealDataMapper.deleteEquipmentRealDataByEquipmentId(equipmentId);
    }
}
